import traceback

from MyTools.myutils import TestUtils

cookie_str = 'rememberMe=true; sidebarStatus=0; Admin-Expires-In=1440; Library-Admin-Token=efc23d1e-4231-4e4c-a4bc-bd9580fca98a; Library-Admin-Expires-In=1440; username=%E8%BF%9E%E4%B8%B0; SECKEY_ABVK=15f1tu6efvNtyWjLK00b9VhsCIEEd6tjrbkxsgwSUsA%3D; BMAP_SECKEY=4tI4P075HGG4nzQR9ivDkU3vRqFRdMfDJNuX6ECFu3ENVFhS5cSY8mkwaWLNDAnu5WVZu8E3d0W4ANdE8nqqmIUUeOooi-gUR6CRVZLksUlw6b95ahkRNIGyND-bL9daEPT55GBivX2ZWycbTdf-d7SWE2hvbHwRZFFa3bvBUG_yxTO-ZLoRGSjfk1Jfc4jJ; password=NkPrnnIs7bvyD4Wb0Ei/Bilc4Gcs1w9Z+CV8briA9A5FynF7xL2EhDg+C0yghAhTjbqI5j5TEdEvtdAoeeXTLA==; integrated-platform-Token=4566fbef-a3cc-402b-8ff6-41132c2571b4'

class Fastcheck(TestUtils):

    def test_fast_check(self):
        self.open("http://10.0.0.75:81/index")
        self.check_status(self)
        try:
            # cookie_str = 'rememberMe=true; sidebarStatus=0; Admin-Expires-In=1440; Library-Admin-Token=efc23d1e-4231-4e4c-a4bc-bd9580fca98a; Library-Admin-Expires-In=1440; username=%E8%BF%9E%E4%B8%B0; Admin-Token=7ca90765-50a7-4764-95dc-7778aba3585d; SECKEY_ABVK=15f1tu6efvNtyWjLK00b9eq/O6lDkhfQy2Iw9GZ3sQA%3D; BMAP_SECKEY=4tI4P075HGG4nzQR9ivDkYMwa9Nurh3hBEXOjMGcRzkEqzyvK-VLA8lLzOg4oCi_6FiuNsMzP36Cnr9XSSrZanCOLy-qIY4Zqx9zh48y7yTrTsBPmPC2vuQEGTqzwzZ60e5u8bVbVundbxUkyFfhhokHpfxM9N7BvkBp6sPL4DNV0hQZhkDbYuaoB6TBcMgN; password=dsXIP9RWOy5e0iXd93+PQAeW68MAo97nraIeoHprH1TUyH3Xrj+IgP0HjC7YXIGYT6Cn2k3doL82GpJRl19wVg==; integrated-platform-Token=b3453bcc-a8cd-4b64-92e5-c8b30832fd1b'
            self.cookie_adder(cookie_str)
            self.maximize_window()
            self.open("http://10.0.0.75:81/index")
            self.check_status(self)
            while True:
                #############################  场站管理  ##########################################
                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(8) > div.wrap-item > div:nth-child(1) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(8) > div.wrap-item > div:nth-child(1)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(8) > div.wrap-item > div:nth-child(2) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(8) > div.wrap-item > div:nth-child(2)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(8) > div.wrap-item > div:nth-child(3) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(8) > div.wrap-item > div:nth-child(3)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(8) > div.wrap-item > div:nth-child(4) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(8) > div.wrap-item > div:nth-child(4)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(8) > div.wrap-item > div:nth-child(5) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(8) > div.wrap-item > div:nth-child(5)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(8) > div.wrap-item > div:nth-child(6) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(8) > div.wrap-item > div:nth-child(6) > div')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(8) > div.wrap-item > div:nth-child(7) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(8) > div.wrap-item > div:nth-child(7)')

                ##############################  运单管理  ##########################################
                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(1) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(1)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(2) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(2)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(3) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(3)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(4) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(4)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(5) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(5)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(6) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(6) > div')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(7) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(7)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(8) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(8)')

                ##############################  安全分析  ##########################################
                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(10) > div.wrap-item > div:nth-child(1) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(10) > div.wrap-item > div:nth-child(1)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(10) > div.wrap-item > div:nth-child(2) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(10) > div.wrap-item > div:nth-child(2)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(10) > div.wrap-item > div:nth-child(3) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(10) > div.wrap-item > div:nth-child(3)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(10) > div.wrap-item > div:nth-child(4) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(10) > div.wrap-item > div:nth-child(4)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(10) > div.wrap-item > div:nth-child(5) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(10) > div.wrap-item > div:nth-child(5)')

                ##############################  运输报表  ##########################################
                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(11) > div.wrap-item > div:nth-child(1) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(11) > div.wrap-item > div:nth-child(1)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(11) > div.wrap-item > div:nth-child(2) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(11) > div.wrap-item > div:nth-child(2)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(11) > div.wrap-item > div:nth-child(3) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(11) > div.wrap-item > div:nth-child(3)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(11) > div.wrap-item > div:nth-child(4) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(11) > div.wrap-item > div:nth-child(4)')

                ##############################  行车数据  ##########################################
                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(12) > div.wrap-item > div:nth-child(1) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(12) > div.wrap-item > div:nth-child(1)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(12) > div.wrap-item > div:nth-child(2) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(12) > div.wrap-item > div:nth-child(2)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(12) > div.wrap-item > div:nth-child(3) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(12) > div.wrap-item > div:nth-child(3)')
                ##############################  车务管理  ##########################################
                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(13) > div.wrap-item > div:nth-child(1) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(13) > div.wrap-item > div:nth-child(1)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(13) > div.wrap-item > div:nth-child(2) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(13) > div.wrap-item > div:nth-child(2)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(13) > div.wrap-item > div:nth-child(3) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(13) > div.wrap-item > div:nth-child(3)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(13) > div.wrap-item > div:nth-child(4) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(13) > div.wrap-item > div:nth-child(4)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(13) > div.wrap-item > div:nth-child(5) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(13) > div.wrap-item > div:nth-child(5)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(13) > div.wrap-item > div:nth-child(6) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(13) > div.wrap-item > div:nth-child(6) > div')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(13) > div.wrap-item > div:nth-child(7) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(13) > div.wrap-item > div:nth-child(7)')

                ##############################  设备管控  ##########################################

                if self.get_current_url() != 'http://10.0.0.75:81':  # 变更这里的 URL 为你希望跳转的页面
                    print("测试完成")
                    break

        except Exception as e:
            print(f"抱歉，出现错误：{str(e)}")
            tb_str = traceback.format_exception(etype=type(e), value=e, tb=e.__traceback__)
            print("".join(tb_str))  # 显示详细的错误追踪信息，包括在哪一行代码触发的错误

    def test_fast_check2(self):
        self.open("http://10.0.0.75:81/index")
        self.check_status(self)
        try:
            # cookie_str = 'rememberMe=true; sidebarStatus=0; Admin-Expires-In=1440; Library-Admin-Token=efc23d1e-4231-4e4c-a4bc-bd9580fca98a; Library-Admin-Expires-In=1440; username=%E8%BF%9E%E4%B8%B0; Admin-Token=7ca90765-50a7-4764-95dc-7778aba3585d; SECKEY_ABVK=15f1tu6efvNtyWjLK00b9eq/O6lDkhfQy2Iw9GZ3sQA%3D; BMAP_SECKEY=4tI4P075HGG4nzQR9ivDkYMwa9Nurh3hBEXOjMGcRzkEqzyvK-VLA8lLzOg4oCi_6FiuNsMzP36Cnr9XSSrZanCOLy-qIY4Zqx9zh48y7yTrTsBPmPC2vuQEGTqzwzZ60e5u8bVbVundbxUkyFfhhokHpfxM9N7BvkBp6sPL4DNV0hQZhkDbYuaoB6TBcMgN; password=dsXIP9RWOy5e0iXd93+PQAeW68MAo97nraIeoHprH1TUyH3Xrj+IgP0HjC7YXIGYT6Cn2k3doL82GpJRl19wVg==; integrated-platform-Token=b3453bcc-a8cd-4b64-92e5-c8b30832fd1b'
            self.cookie_adder(cookie_str)
            self.maximize_window()
            self.open("http://10.0.0.75:81/index")
            self.check_status(self)
            while True:
                #############################  场站管理  ##########################################
                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(8) > div.wrap-item > div:nth-child(2) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(8) > div.wrap-item > div:nth-child(2)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(8) > div.wrap-item > div:nth-child(3) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(8) > div.wrap-item > div:nth-child(3)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(8) > div.wrap-item > div:nth-child(4) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(8) > div.wrap-item > div:nth-child(4)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(8) > div.wrap-item > div:nth-child(5) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(8) > div.wrap-item > div:nth-child(5)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(8) > div.wrap-item > div:nth-child(6) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(8) > div.wrap-item > div:nth-child(6) > div')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(8) > div.wrap-item > div:nth-child(7) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(8) > div.wrap-item > div:nth-child(7)')

                ##############################  运单管理  ##########################################
                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(1) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(1)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(2) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(2)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(3) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(3)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(4) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(4)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(5) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(5)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(6) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(6) > div')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(7) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(7)')

                self.click_when_visible('.el-tooltip.iconfont.item.svg-icon.applicate-class')
                element_text = self.get_text(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(8) > div > div.router-title')
                print("正在测试的应用是" + element_text)
                self.click_when_visible_and_close(
                    '#app > div > div.app-wrapper__container.ly-flex-1 > div.s-side-menu-content > div.applicate-drawer > div > div > div > section > div > div.container > div:nth-child(18) > div > div.app-menu > div:nth-child(9) > div.wrap-item > div:nth-child(8)')

                if self.get_current_url() != 'http://10.0.0.75:81':  # 变更这里的 URL 为你希望跳转的页面
                    print("测试完成")
                    break

        except Exception as e:
            print(f"抱歉，出现错误：{str(e)}")
            tb_str = traceback.format_exception(etype=type(e), value=e, tb=e.__traceback__)
            print("".join(tb_str))  # 显示详细的错误追踪信息，包括在哪一行代码触发的错误